package com.lzj.firewallmamager.service;

import com.lzj.firewallmamager.entity.FirewallPolicyEntity;

import java.util.List;

public interface FirewallService {

    /**
     * 增加一条策略
     * @param entity
     * @throws Exception
     */
    void insertPolicy(FirewallPolicyEntity entity) throws Exception;


    /**
     * 根据id查询策略
     * @param id
     * @return
     * @throws Exception
     */
    FirewallPolicyEntity getPolicyById(int id) throws Exception;

    /**
     * 查询所有策略
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<FirewallPolicyEntity> getAllPolicy(int pageNum, int pageSize);

}
